﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace DALFactory
{
    public class DatabaseInfoFactory
    {
        private string _path = "SQLServer";

        public IDAL.IDatabaseInfo CreateDatabaseInfo()
        {
            string className = _path + ".DatabaseInfo";
            return (IDAL.IDatabaseInfo)Assembly.Load(_path).CreateInstance(className);
        }

    }
}
